package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Workflow;
import com.qidianit.mes.pojo.pro.WorkflowProcess;

public interface WorkflowProcessService {
    /**
     *
     * @param workflowProcess
     * @param page
     * @param size
     * @return
     */
    Result<PageInfo<WorkflowProcess>> selectList(WorkflowProcess workflowProcess, int page, int size);

    /**
     *
     * @param workflowProcess
     * @return
     */
    Result<WorkflowProcess> saveWorkflowProcess(WorkflowProcess workflowProcess);

    /**
     *
     * @param workflowProcessId
     * @return
     */
    Result<WorkflowProcess> selectById(Long workflowProcessId);

    /**
     *
     * @param workflowProcess
     * @return
     */
    Result updateById(WorkflowProcess workflowProcess);

    /**
     *
     * @param workflowProcessId
     * @return
     */
    Result deleteById(Long workflowProcessId);

    /**
     *
     * @param ids
     * @return
     */
    Result batchDelete(Long[] ids);
}
